home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / AppleScript / Development Tools / Sample Code / Æ Coercion / AECoercionINIT.make < prev    next >
Encoding:
Text File  |  1992-02-19  |  1.6 KB  |  38 lines  |  [TEXT/MPS ]

  1. #   File:       AECoercionINIT.make
  2. #   Target:     AECoercionINIT
  3. #   Sources:    AECoerceINIT.r Coercions.c InstallCoercions.a InstallCoercions.c
  4. #   Created:    Friday, November 8, 1991 11:06:07 AM
  5.  
  6. # when making an INIT like this, remember that things are postion dependant
  7. # since we're BlockMoving just some of the code, we have to make sure
  8. # that the correct bits bet moved, and that we don't move
  9. # a bunch of code that's not needed.
  10. # And the main reason to make sure these files are linked in the correct
  11. # order is to make sure that the entry point is the first thing in the
  12. # code.  That's why "InstallCoercions.a.o" is listed first, because I want
  13. # that code to execute first, taht's where our entry point is.
  14. # True, we tell the linker where the entry point is, but that doesn't
  15. # matter to the INIT 31 mechanism, it expects the first INIT code to
  16. # be the first byte of the INIT code itself.  So make sure you're in the right order!
  17. OBJECTS = InstallCoercions.a.o InstallCoercions.c.o ShowINIT.a.o Coercions.c.o 
  18.  
  19. AECoercionINIT ƒƒ AECoercionINIT.make AECoerceINIT.r
  20.     Rez AECoerceINIT.r -append -o AECoercionINIT
  21.  
  22.  
  23. AECoercionINIT ƒƒ AECoercionINIT.make {OBJECTS}
  24.     Link -t INIT -c AECI -rt INIT -m INITInstall -sg AECoercionINIT ∂
  25.         {OBJECTS} ∂
  26.         "{Libraries}"Interface.o ∂
  27.         -o AECoercionINIT
  28.     SetFile -a B AECoercionINIT
  29.     Duplicate -y AECoercionINIT "{SystemFolder}"Extensions:
  30.  
  31. Coercions.c.o ƒ AECoercionINIT.make Coercions.c
  32.      C -r  Coercions.c
  33. InstallCoercions.a.o ƒ AECoercionINIT.make InstallCoercions.a
  34.      Asm  -case obj InstallCoercions.a
  35. InstallCoercions.c.o ƒ AECoercionINIT.make InstallCoercions.c
  36.      C -r  InstallCoercions.c
  37.  
  38.